<template>
    <div class="footer userDetFooter">
      <div class="fourtune">
          <span @click="callUp(phone)" class="friend">
            <img :src="`${constant.imgUrl}center/icon_note.png`" alt>
            <p>短信</p>
          </span>
          <span @click="callUp(phone)" class="friend">
            <img :src="`${constant.imgUrl}design/telep.png`" alt>
            <p>拨号</p>
          </span>
        </div>
  </div>
</template>

<script>
export default {
	name: 'Ordinfooter',
	data() {
		return {
			consult: false,
			constant: this.$constant
		}
	},
	props: {
		phone: ''
	},
	mounted() {
	},
	methods: {
		callUp(val) {
			uni.makePhoneCall({
				phoneNumber: val // 仅为示例
			})
		}
	}
}
</script>

<style lang="scss" scoped>
.footer {
    width: 100%;
    height: 100px;
}
.userDetFooter {
  .fourtune {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
      .friend {
        width: auto;
        display: flex;
        align-items: center;
        border-radius: 50px;
        padding: 6px 20px;
        border: 2px solid #ddd;
        margin-right: 20px;
        img {
          margin: 2px 10px 0 0;
        }
      }
  }
}
.friend img {
    float: left;
    width: 50px;
    height: 50px;
    margin-left: 25px;
}
// .modules {
//   top: 77%;
//   border-radius: 20px 20px 0 0;
// }
// .designs {
//   width: 100%;
//   height: 100%;
//   float: left;
// }
</style>
